<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>loading5</title>
  <style>
    * {
      box-sizing: border-box;
    }
    .progress{
      width: 120px;
      height:22px;
      border-radius: 20px;
      color: #514b82;
      border: 2px solid;
      position: relative;
    }
    .progress::before{
      content:"";
      position: absolute;
      margin: 2px;
      inset: 0 100% 0 0;
      border-radius: inherit;
      background: #514b82;
      animation: p6 2s infinite;
    }
    @keyframes p6 {
      100% {
        inset: 0;
      }
    }
  </style>
</head>

<body>
  <div class="progress"></div>

</body>

</html>